/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.infrastructure.util.bean;

import org.dromara.hutool.swing.captcha.CircleCaptcha;

/**
 * hallele_mc_core
 *
 * @author anle5
 * @since 2024/9/15 12:54
 */
public class Captcha extends CircleCaptcha {
    /**
     * 构造
     *
     * @param width          图片宽
     * @param height         图片高
     * @param codeCount      字符个数
     * @param interfereCount 验证码干扰元素个数
     */
    public Captcha(int width, int height, int codeCount, int interfereCount) {
        super(width, height, codeCount, interfereCount);
    }

    /**
     * 生成验证码
     *
     * @return String
     */
    public String getCaptcha() {
        return this.getCode();
    }
}
